package com.cloud.feign.service.impl;

import com.cloud.feign.service.UserFeignService;
import com.yingxue.lesson.entity.SysUser;
import com.yingxue.lesson.exception.code.BaseResponseCode;
import com.yingxue.lesson.utils.DataResult;
import com.yingxue.lesson.vo.req.LoginReqVO;
import com.yingxue.lesson.vo.req.UserPageReqVO;
import com.yingxue.lesson.vo.resp.HomeRespVO;
import com.yingxue.lesson.vo.resp.LoginRespVO;
import com.yingxue.lesson.vo.resp.PageVO;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;

/**
 * @author lai
 * @version 1.0
 * @date 2021/5/29 23:49
 * @description
 */
@Component
public class FallbackService implements UserFeignService {

    @Override
    public DataResult<PageVO<SysUser>> pageInfo(UserPageReqVO vo) {
        System.out.println("...................");
        return DataResult.getResult(BaseResponseCode.OPERATION_ERROR);
    }

    @Override
    public DataResult<LoginRespVO> login(@Valid LoginReqVO vo) {
        return null;
    }

    @Override
    public DataResult<HomeRespVO> getHome(HttpServletRequest request) {
        return null;
    }
}
